package com.dondedesigns.eh.controller.permission;

import java.util.List;

import com.dondedesigns.eh.persistence.Permissions;
import com.dondedesigns.eh.persistence.dao.PermissionDAO;
import com.opensymphony.xwork2.ActionSupport;

public class PermissionManagement extends ActionSupport {

	private PermissionDAO permissionDAO; 
	
	@Override
	public String execute() throws Exception {
		return SUCCESS;
	}
	
	public List<Permissions> getPermissionList() {
		return permissionDAO.select();

	}

	public void setPermissionDAO(PermissionDAO permissionDAO) {
		this.permissionDAO = permissionDAO;
	}
}
